﻿namespace PhotobucketNet
{
    using System;

    internal class ConsumerToken : PhotobucketToken
    {
        private string _nextStepUrl;

        public ConsumerToken()
        {
            this._nextStepUrl = string.Empty;
        }

        public ConsumerToken(string token, string secret, string nextStepUrl) : base(token, secret)
        {
            this._nextStepUrl = string.Empty;
            this.NextStepUrl = nextStepUrl;
        }

        public override bool Equals(object obj)
        {
            ConsumerToken token = obj as ConsumerToken;
            return (base.Equals(obj) && this.NextStepUrl.Equals(token.NextStepUrl));
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }

        public string NextStepUrl
        {
            get
            {
                return this._nextStepUrl;
            }
            set
            {
                this._nextStepUrl = value;
            }
        }
    }
}

